package com.michale.common.properties;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Michale
 * @apiNote 读取token配置属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    @ApiModelProperty("令牌自定义标识")
    private String header;

    @ApiModelProperty("令牌秘钥")
    private String secret;

    @ApiModelProperty("令牌有效期（默认30分钟）")
    private int expireTime;
}
